/** 格式校验工具方法 license by http://eleadmin.com */
// 兼容旧版
import * as validate from './utils/validate.js';

export default {
  ...validate,
  phone: validate.phoneReg,
  phoneStrong: validate.phoneStrongReg,
  tel: validate.telReg,
  email: validate.emailReg,
  url: validate.urlReg,
  identity: validate.identityReg,
  date: validate.dateReg,
  number: validate.numberReg,
  integer: validate.integerReg,
  positiveInteger: validate.positiveIntegerReg,
  negativeInteger: validate.negativeIntegerReg,
  nonNegativeInteger: validate.nonNegativeIntegerReg,
  nonPositiveInteger: validate.nonPositiveIntegerReg,
  chinese: validate.chineseReg,
  port: validate.portReg,
  ip: validate.ipReg,
  longitude: validate.longitudeReg,
  latitude: validate.latitudeReg,
  digits: validate.integerReg,
  digitsP: validate.positiveIntegerReg,
  digitsN: validate.negativeIntegerReg,
  digitsPZ: validate.nonNegativeIntegerReg,
  digitsNZ: validate.nonPositiveIntegerReg,
  isDigits: validate.isInteger,
  isDigitsP: validate.isPositiveInteger,
  isDigitsN: validate.isNegativeInteger,
  isDigitsPZ: validate.isNonNegativeInteger,
  isDigitsNZ: validate.isNonPositiveInteger
};
